import Vue from 'vue'
import Vuex from 'vuex'

import menuRoutes from './moudel/menuRoutes'
import userStore from './moudel/userStore'

Vue.use(Vuex)

export default new Vuex.Store({

  state: {
    contentTitle: "",
    cf:"",
    backColor:sessionStorage.backColor||""
  },
  getters: {
  },
  mutations: {
    setTitle(state, title) {
      state.contentTitle = title
    },
    setCf(state,title){
      state.cf=title
    },
    setbackColor(state,color){
      sessionStorage.backColor=color
      state.backColor=color
    }
  },
  actions: {
  },
  modules: {
    menuRoutes,
    userStore,
  }
})
